home *** CD-ROM | disk | FTP | other *** search
- ; script to install Stroke
-
- (transcript "Checking user level.")
- (if (< @user-level 1)
- (
- (transcript "Installation aborted due to too low user level.")
- (abort "Stroke installation requires at least the \"average\" user "
- "level. Restart installation and select appropriate user level."
- )
- )
- )
-
- (onerror
- (makeassign "Stroke-install" (safe))
- )
-
- (complete 0)
-
- ;(if (exists "SYS:WBStartup/Stroke-launch.info" (noreq))
- ; ( (if (askbool
- ; (prompt "Do you want remove Stroke commodity ?")
- ; (help "If you select yes, Stroke commodity will be removed.\n")
- ; (default 0)
- ; )
- ; ()
- ; )
- ; )
- ;)
-
-
- (set @default-dest "SYS:")
- (set Stroke_dest
- (askdir (prompt "In which disk or drawer should Stroke commodity be installed?")
- (help "A subdirectory will be created for Stroke.\n\n"
- @askdir-help)
- (default @default-dest)
- (disk)
- )
- )
-
- (set @default-dest Stroke_dest)
-
-
- (set not_in_place 1)
- (if (askbool
- (prompt "Do you want MagicWB icons instead of default icons ?")
- (help "If you select no, you get standard 4-color icons.\n")
- (default 0)
- )
- (set iconsource "MWB/")
- (set iconsource "Default/")
- )
- (if (askbool
- (prompt "Do you want to add Stroke to WBStartup ?")
- (help "If you select yes, Stroke will be automatically started "
- "whenever you boot your machine.\n")
- (default 1)
- )
- (set wb_add 1)
- (set wb_add 0)
- )
-
-
- (if (not (exists "Stroke-install:" (noreq)))
- (makeassign "Stroke-install" "" (safe)) ; make an educated quess..
- )
-
-
- (makedir (tackon Stroke_dest "Stroke") (infos) (safe))
-
- (copyfiles (source (tackon "Stroke-install:Icons/" (tackon iconsource "Stroke.info")))
- (dest (tackon Stroke_dest "Stroke"))
- )
- (if not_in_place
- (
- (copyfiles (source "Stroke-install:Stroke")
- (dest (tackon Stroke_dest "Stroke"))
- )
- (copyfiles (source "Stroke-install:Stroke.doc")
- (dest (tackon Stroke_dest "Stroke"))
- (infos)
- )
- (copyfiles (source "Stroke-install:Stroke.data")
- (dest (tackon Stroke_dest "Stroke"))
- )
- (copyfiles (source "Stroke-install:Catalogs")
- (dest (tackon Stroke_dest "Stroke/Catalogs"))
- (all)
- )
- )
- )
-
- (if (= wb_add 1)
- (
- (copyfiles (source (tackon "Stroke-install:Icons/" (tackon iconsource "Stroke-launch.info")))
- (dest "SYS:WBStartup")
- )
- (tooltype (prompt "Setting tooltypes for WBStartup icon")
- (help "These tooltype entries must be present, so let me make them..")
- (dest "SYS:WBStartup/Stroke-launch")
- (setdefaulttool (tackon Stroke_dest "Stroke/Stroke"))
- (noposition)
- (settooltype "DONOTWAIT" "")
- )
- )
- )
-
-
- (complete 100)
- (makeassign "Stroke-install" (safe))
-
- ; this is not strictly necessary, but doesn't hurt
- (exit)
-